package com.u1zz.zeus.module.iot.controller.admin.device.vo;

import lombok.*;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;
import org.springframework.format.annotation.DateTimeFormat;

import static com.u1zz.zeus.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 设备列表 Request VO")
@Data
public class DeviceListReqVO {

    @Schema(description = "设备标识")
    private String deviceKey;

    @Schema(description = "设备名称", example = "张三")
    private String deviceName;

    @Schema(description = "所属产品", example = "4751")
    private Long productId;

    @Schema(description = "描述", example = "你猜")
    private String description;

    @Schema(description = "状态", example = "UNACTIVE")
    private String status;

    @Schema(description = "激活时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] activeTime;

    @Schema(description = "最后上线时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] lastOnlineTime;

    @Schema(description = "设备密钥")
    private String deviceSecret;

    @Schema(description = "固件版本号")
    private String version;

}